package com.hm.plugin.report.model;

import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 10:44:31 AM Dec 11, 2015
 * @version 1.0
 * @describe 设置excel单元格样式
 */
@Setter
@Getter
public class WriteCell {

	private String name;

	private String code;

	private String value;

	private int lineWidth = 120;

	private HSSFFont hssfFont;

	private HSSFCellStyle style;

	public WriteCell simple(String name, String code) {
		this.name = name;
		this.code = code;
		return this;
	}

	@Override
	public String toString() {
		return "WriteCell [name=" + name + ", code=" + code + ", value=" + value + ", lineWidth=" + lineWidth
				+ ", hssfFont=" + hssfFont + ", style=" + style + "]";
	}

}
